package com.situ.day6;

public class Add extends Cal {
	
	public Add() {
		super();
		//new Cal();
	}

	public Add(int num1, int num2) {
		super(num1, num2);
		// new Cal(num1, num2);
	}

	@Override
	public int getResult() {
		return num1 + num2;
	}

	/*@Override
	public int getResult() {
		//return super.getResult();//调用父类对象的getResult方法
		return num1 + num2;
	}*/
}
